<template>
	<view>
		<autograph @save="save" @clear="clear"></autograph>
		<image :src="imgsave" mode="" v-if="imgsave != ''"></image>
	</view>
</template>

<script>
	import autograph from './component/autograph.vue'
	export default {
		components: {autograph},
		data() {
			return {
				imgsave: ''
			}
		},
		onLoad() {

		},
		methods: {
			save(val){
				this.imgsave = val.tempFilePath
			},
			clear(val){
				this.imgsave = ''
			}
		}
	}
</script>

<style lang="scss" scoped>
image{
	height: 500rpx;
	width: 100%;
	display: block;
	position: relative;
	background: #F6F6F6;
}
</style>
